package cn.txm.org.service.impl;


import cn.txm.basic.service.impl.BaseServiceImpl;
import cn.txm.org.domain.Employee;
import cn.txm.org.mapper.EmployeeMapper;
import cn.txm.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;


    //基础的实现内容通过  extends BaseServiceImpl<Employee>  得到
    /*继承的作用：在编译的时候，会把父亲的内容拷贝过来*/

    /*自己的扩展内容
     delEmplAndEmpRole  删除员工的时候可以考虑把员工角色中间表的数据也删除
    */

}
